﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ARR.Entities.Validation.ComponentModel;
using ARR.Entities.ComponentModel;
using ARR.Entities.Validation.Common;
using ARR.Shared;

namespace ARR.Entities.Validation
{
    [Serializable]
    public class AttributeInputValidations : InputValidationBase
    {
        private Entities.Attribute attribute;

        public AttributeInputValidations(Entities.Attribute attribute)
        {
            this.attribute = attribute;
        }

        public override List<ValidationBase> CreateValidations()
        {
            List<ValidationBase> inputValidations = new List<ValidationBase>();
                        
            inputValidations.Add(new Required("AttributeValue", Labels.Valor));
            inputValidations.Add(new StringLength("AttributeValue", 200, Labels.Valor));            

            return inputValidations;
        }
    }
}
